const conn = require('../../libs/DB/Conn');
const utils = require('../../libs/Utils');
const operationRecord = require("../sys/operationRecordAction");
module.exports = async function (params) {
    let userId = params.userId;
    let newPwd = utils.encrypt("123456");
    let updateSql = `UPDATE user_file SET password = ? WHERE user_id = ?`;
    await conn(updateSql, [newPwd,userId]);
    await operationRecord(params);
    return {success: true, message: '修改成功'}
};